package com.zhangck.bos2_0.Service.Impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.zhangck.bos2_0.Service.TakeTimeService;
import com.zhangck.bos2_0.dao.TakeTimeRepository;

import cn.itcast.bos.domain.base.TakeTime;

/** 
* @author 上午茶
* @version 创建时间：2018年6月3日 下午3:19:26 
* 类说明 
*/
@Service
@Transactional
public class TakeTimeServiceImpl implements TakeTimeService {
	@Autowired
	private TakeTimeRepository takeTimeRepository;
	
	@Override
	public Page<TakeTime> finddatapage(Pageable request) {
		return takeTimeRepository.findAll(request);
	}

	@Override
	public List<TakeTime> findAll() {
		return takeTimeRepository.findAll();
	}

}
